<?php
include ("../model/connect.php");
include ("../model/Faculty/Faculty_class.php");

$studentid = $_POST['studentid'];
$courseid = $_POST['courseid'];
$finalgrade = $_POST['finalgrade'];
$semester = $_POST['semester'];
$page = $_POST['page'];

$faculty = new Faculty();
    $faculty->addGrade($studentid,$courseid,$finalgrade,$semester);
    mysql_close($conn);
    header("location:http:/educational/faculty-index.php?p=faculty-add-grade&page={$page}");
?>